package com.tj.bo.user.server.dao;

import com.fqgj.common.base.BaseMapper;
import com.tj.bo.user.server.entity.UserPromotionRecordEntity;

import java.util.List;

/**
* User: xulin
* Date: 2020-08-19
* Time: 18:16:04.889
*/

public interface UserPromotionRecordDao  extends BaseMapper<UserPromotionRecordEntity> {

    List<UserPromotionRecordEntity> queryUserPromotionRecordByUserCode(String userCode);

    UserPromotionRecordEntity queryUserPromotionByInvitedUserCode(String invitedUserCode);

    int updateUserPromotionRecord(String invitedUserCode, Integer bonus);
}